optimized fishing when looking up existing fish (should perhaps be moved
authorØyvind Kolås <ok@src.gnome.org>
Tue, 13 Nov 2007 00:05:46 +0000 (00:05 +0000)
committerØyvind Kolås <ok@src.gnome.org>
Tue, 13 Nov 2007 00:05:46 +0000 (00:05 +0000)
commit74c89aea8a7dde49bd9e32469b20c1e295f83119
tree40c69400dcbf8d83508c46e3932d18920c8da77d
parentc7fea84fe5d7fd3806c408bf7a0b84475bc9eb91
optimized fishing when looking up existing fish (should perhaps be moved

* babl/babl-fish.c: (go_fishing): optimized fishing when looking
up existing fish (should perhaps be moved to lists going from given
formats, similar to how conversions are added there instead.) Made
go_fishing accept BABL_FISH_REFERENCE when source and desintation
formats are equal.
(babl_fish_process): removed most of the need for BablImage for
linear buffers, do a memcpy when source and destination formats
are equal (and we're a BABL_FISH_REFERENCE).
* babl/babl-db.[ch]: moved the BablDb struct out into public to
allow faster iteration through it.

svn path=/trunk/; revision=250
ChangeLog
babl/babl-db.c
babl/babl-db.h
babl/babl-fish.c